STEP 4: Let's start making our maze by creating a new function.

  • This function will need one parameter—a 2D list with an equal number of rows and columns.
  • In , drag in Define Function with Docstring above where it says: MAIN FUNCTION.
  • Rename my_function to create_maze and type maze inside the ( ).
  • Finally, change your docstring to the following: """ Creates the maze using square sprites """

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)